WP_Defender\Controller\Recaptcha D

Total Complexity 159
Dependencies 11
Dependents 3
Total lines 1,089
Lines of code 688
Logical lines of code 314
Comment lines 283
Methods 37
Properties 11

Methods 37

Method Rating Maintainability Complexity Lines of code
add_actions()
B
36 23 69
data_frontend()
A
40 15 60
load_recaptcha_preview()
A
34 8 115
display_recaptcha()
A
44 11 46
validate_captcha_field_on_login()
A
54 8 23
validate_captcha_field_on_wpmu_registration()
S
56 7 17
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
is_woocommerce_page()
S
61 5 12
display_login_recaptcha()
S
51 3 40
__construct()
S
55 4 19
get_api_url()
S
57 4 18
validate_captcha_field_on_woo_registration()
S
62 5 10
maybe_validate_captcha_for_lostpassword()
S
66 5 7
add_scripts()
S
50 3 29
validate_captcha_field_on_comment()
S
63 4 11
recaptcha_response()
S
58 3 15
save_settings()
S
52 2 28
dashboard_widget()
S
62 3 12
validate_captcha_field_on_buddypress_group()
S
62 3 11
validate_captcha_field_on_registration()
S
64 3 10
validate_captcha_field_on_woo_login()
S
63 3 10
is_recaptcha_settings()
S
69 3 6
toggle_module()
S
55 1 22
validate_captcha_field_on_buddypress_registration()
S
72 2 5
display_buddypress_recaptcha()
S
65 2 9
validate_captcha_field_on_lostpassword()
S
73 2 5
display_signup_recaptcha()
S
68 2 7
import_data()
S
69 2 7
export_strings()
S
77 2 3
script_loader_tag()
S
70 2 6
validate_captcha_field_on_woo_checkout()
S
67 2 7
script_data()
S
76 1 4
comment_form_defaults()
S
75 1 4
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
82 1 3